import 'dart:convert';

import 'package:get/get_rx/src/rx_types/rx_types.dart';
import 'package:mziot/generated/json/base/json_field.dart';
import 'package:mziot/generated/json/group_down_entity.g.dart';

@JsonSerializable()
class GroupDownEntity {
  int? id;
  String? groupName;
  int? deviceNum;

  var isSelected = false.obs;

  GroupDownEntity();

  factory GroupDownEntity.fromJson(Map<String, dynamic> json) => $GroupDownEntityFromJson(json);

  Map<String, dynamic> toJson() => $GroupDownEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
